package com.niit.gams.dao;


import com.niit.gams.pojo.SysRole;
import com.niit.gams.pojo.SysUser;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface SysRoleMapper extends BaseMapper<SysRole> {
  List<SysRole> findRolesByUserId(Long uid);

  //分页查询
  List<SysRole> findUsersByPage(Integer curPage, Integer pageSize);

  int deleteRidsByUid(Long uid);

  int insertRidsByUid(Long uid, List<Long> rids);
}
